package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.trade.item.convert.ItemConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.items.custom.get Response
	 * @author fxy
	 *
	 */
	public class ItemsCustomGetResponse extends TaobaoResponse
	{
		/**
		 *商品列表，具体返回字段以fields决定
		 */
		public var items:ArrayCollection;

		public function ItemsCustomGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initItems();
		}

		private function initItems():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("items"))
					items=ItemConvert.convertItems(body["rsp"]["items"]);
			}
		}
	}
}